//
//  QuanRITongColors.h
//  QuanRiTong
//
//  Created by duan on 14/12/11.
//  Copyright (c) 2014年 fuhuantech. All rights reserved.
//

#ifndef Colors_h
#define Colors_h

/** rgb16进至 */
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

/** rgb */
#define RGB(r, g, b)    [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:1.f]

/** rgba */
#define RGBA(r, g, b, a)    [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:a]

#endif
